using System;
using System.ComponentModel;
using System.Linq;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace ApiTest2.Entitys
{
    /// <summary>
    /// 
    /// </summary>  
    /// <remarks>
    /// <![CDATA[ENGINE=InnoDB  COMMENT='']]>
    /// </remarks>
    [DbSource("Default"), Serializable]
    public class SysMsgRel
    {
        /// <summary>
        /// msg_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[bigint NOT NULL COMMENT '']]>
        /// </remarks>
        [Primary]
        public long MsgId { get; set; }

        /// <summary>
        /// link_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Primary]
        public int LinkId { get; set; }

        /// <summary>
        /// 用户代号
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '用户代号']]>
        /// </remarks>
        [Column(false)]
        [DisplayName("用户代号")]
        public int LinkCode { get; set; }

        /// <summary>
        /// 已读
        /// </summary>
        /// <remarks>
        /// <![CDATA[bit(1) NOT NULL COMMENT '已读']]>
        /// </remarks>
        [Column(1, false)]
        [DisplayName("已读")]
        public bool IsRead { get; set; }

    }
}
